﻿CREATE TABLE [dbo].[UDS_Flow_Document] (
    [Doc_ID]         int      NOT NULL,
    [Doc_Builder_ID] int      NULL,
    [Doc_Added_Date] datetime NULL,
    [Doc_Status]     int      NULL,
    [Flow_ID]        int      NULL,
    [Step_ID]        int      NULL,
    [IsRunning]      bit      NULL,
    [Obj_ID]         int      NULL CONSTRAINT [DF_UDS_Flow_Document_Obj_ID] default(0),
    [Obj_Type]       int      NULL CONSTRAINT [DF_UDS_Flow_Document_Obj_Type] default(0),

    CONSTRAINT [PK_UDS_Flow_Document] PRIMARY KEY (Doc_ID asc),
    CONSTRAINT [FK_UDS_Flow_Document_Doc_ID] FOREIGN KEY (Doc_ID) REFERENCES dbo.UDS_Flow_Style_Data(Doc_ID)
);
GO
